package com.ruoyi.media.mediaPlatform.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 自媒体平台配置业务对象 media_platform
 *
 * @author dqw
 * @date 2023-03-23
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MediaPlatformBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 部门id
     */
    //@NotNull(message = "部门id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 用户id
     */
    //@NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 平台名称
     */
    @NotBlank(message = "平台名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String platformName;

    /**
     * 登录链接
     */
    @NotBlank(message = "登录链接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 平台标识
     */
    @NotBlank(message = "平台标识不能为空", groups = { AddGroup.class, EditGroup.class })
    private String platformCode;

    /**
     * 是否开启
     */
    //@NotNull(message = "是否开启不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 备注
     */
    //@NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;



}
